package com.robot.common.exception;

public class BusinessException extends RuntimeException {

    private int code;
    private String message;

    public BusinessException(int code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }

    public BusinessException(String message){
        super(message);
        this.message = message;
    }
    // getter省略

    public int getErrorCode() {
        return code;
    }

    public String getErrorMessage() {
        return message;
    }


}
